/**
 * @description: 应用配置信息表
 * @version: 0.0.1
 * @author: z..
 * @Date: 2023-06-12 18:16:39
 */

import { Table, Model, Column, CreatedAt, UpdatedAt, DataType } from 'sequelize-typescript';

@Table({ tableName: 'robot_alarm_records' })
export class RobotAlarmRecords extends Model {
  @Column({
    primaryKey: true,       //主键
    autoIncrement: true,    //自增
    comment: "自增id"       //注释:只在代码中有效
  })
  id: number;

  @Column({
    type: DataType.TEXT,
    comment: "报警名称"
  })
  alarm_name: string;

  @Column({
    type: DataType.TEXT,
    comment: "报警内容"
  })
  alarm_content: string;

  @Column({
    type: DataType.TEXT,
    comment: "报警方式"
  })
  alarm_type: string;

  @Column({
    type: DataType.TEXT,
    comment: "报警提前通知天数"
  })
  alarm_time: string;

  @Column({
    type: DataType.TEXT,
    comment: "报警结束时间"
  })
  alarm_endtime: string;

  @Column({
    type: DataType.TEXT,
    comment: "状态 未开始NOT_START,进行中START，结束END"
  })
  alarm_status: string;

  @Column({
    type: DataType.TEXT,
    comment: "负责人userid列表"
  })
  alarm_userid: string;

  @Column({
    type: DataType.NUMBER,
    comment: "0未删除，1删除"
  })
  is_del: number;

  @Column({
    type: DataType.TEXT,
    comment: "报警唯一标识"
  })
  alarm_code: string;

  @Column({
    type: DataType.TEXT,
    comment: "报警配置内容"
  })
  alarm_inner: string;

  @Column({
    type: DataType.TEXT,
    comment: "创建人id"
  })
  created_userid: string;

  @Column({
    type: DataType.TEXT,
    comment: "创建人名称"
  })
  created_username: string;

  @Column({
    type: DataType.TEXT,
    comment: "品牌id"
  })
  brand_id: string;

  @Column({
    type: DataType.TEXT,
    comment: "品牌名称"
  })
  brand_name: string;

  @Column({
    type: DataType.TEXT,
    comment: "项目id"
  })
  project_id: string;

  @Column({
    type: DataType.TEXT,
    comment: "项目名称"
  })
  project_name: string;

  @Column({
    type: DataType.TEXT,
    comment: "通知类型"
  })
  alarm_style: string;

  @Column({
    type: DataType.TEXT,
    comment: "负责人名称列表"
  })
  alarm_username: string;

  @CreatedAt
  created_at: Date;

  @UpdatedAt
  updated_at: Date;
}